home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / sources / unix / volume19 / nn / patch1 < prev    next >
Encoding:
Internet Message Format  |  1989-06-25  |  2.5 KB

  1. Subject:  v19i077:  NN, a Usenet news reader, Patch1
  2. Newsgroups: comp.sources.unix
  3. Sender: sources
  4. Approved: rsalz@uunet.UU.NET
  5.  
  6. Submitted-by: storm@texas.dk (Kim F. Storm)
  7. Posting-number: Volume 19, Issue 77
  8. Archive-name: nn/patch1
  9.  
  10. Well, solving one problem often leads to another, and so also with nn.  As
  11. distributed, nn dumps core if people have never read news before.  A patch
  12. follows.
  13.  
  14. Thank you.
  15. Kim F. Storm        storm@texas.dk        Tel +45 429 174 00
  16.  
  17. #! /bin/sh
  18. # This is a shell archive.  Remove anything before this line, then unpack
  19. # it by saving it into a file and typing "sh file".  To overwrite existing
  20. # files, type "sh file -c".  You can also feed this as standard input via
  21. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  22. # will see the following message at the end:
  23. #        "End of shell archive."
  24. # Contents:  Patch1
  25. # Wrapped by rsalz@papaya.bbn.com on Mon Jun 26 15:52:25 1989
  26. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  27. if test -f 'Patch1' -a "${1}" != "-c" ; then 
  28.   echo shar: Will not clobber existing file \"'Patch1'\"
  29. else
  30. echo shar: Extracting \"'Patch1'\" \(1172 characters\)
  31. sed "s/^X//" >'Patch1' <<'END_OF_FILE'
  32. X
  33. X*** /usr/storm/nn6.3.0/patchlevel.h
  34. X--- patchlevel.h
  35. X**************
  36. X*** 7,12
  37. X   *    1988-11-01:  Distributed release 6.1     (Europe)
  38. X   *    1989-03-21:  Distributed release 6.2beta (FTP)
  39. X   *    1989-05-30:  Distributed release 6.3    (World)
  40. X   */
  41. X  
  42. X  #define PATCHLEVEL 0
  43. X--- 7,14 -----
  44. X   *    1988-11-01:  Distributed release 6.1     (Europe)
  45. X   *    1989-03-21:  Distributed release 6.2beta (FTP)
  46. X   *    1989-05-30:  Distributed release 6.3    (World)
  47. X+  *
  48. X+  *    1989-06-06:  Patch 1: rc.c
  49. X   */
  50. X  
  51. X  #define PATCHLEVEL 1
  52. X**************
  53. X*** 9,13
  54. X   *    1989-05-30:  Distributed release 6.3    (World)
  55. X   */
  56. X  
  57. X! #define PATCHLEVEL 0
  58. X  
  59. X--- 11,15 -----
  60. X   *    1989-06-06:  Patch 1: rc.c
  61. X   */
  62. X  
  63. X! #define PATCHLEVEL 1
  64. X  
  65. X
  66. X*** /usr/storm/nn6.3.0/rc.c
  67. X--- rc.c
  68. X**************
  69. X*** 140,145
  70. X      fclose(newsrc);
  71. X      }
  72. X      
  73. X      if (no_update) mk_bak = 0;
  74. X  
  75. X      bak = mk_bak ? open_file(bak_path, OPEN_CREATE | MUST_EXIST) : NULL;
  76. X--- 140,150 -----
  77. X      fclose(newsrc);
  78. X      }
  79. X      
  80. X+     if (rc == NULL) {        /* no .nn/rc and no .newsrc */
  81. X+     bak = NULL;
  82. X+     goto endloop;
  83. X+     }
  84. X+     
  85. X      if (no_update) mk_bak = 0;
  86. X  
  87. X      bak = mk_bak ? open_file(bak_path, OPEN_CREATE | MUST_EXIST) : NULL;
  88. X
  89. X
  90. END_OF_FILE
  91. if test 1172 -ne `wc -c <'Patch1'`; then
  92.     echo shar: \"'Patch1'\" unpacked with wrong size!
  93. fi
  94. # end of 'Patch1'
  95. fi
  96. echo shar: End of shell archive.
  97. exit 0
  98.